package com.yanyeori.framework.websocket.annotation;

import com.yanyeori.framework.websocket.config.WebSocketConfig;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启用WebSocket
 *
 * @author chenkuan
 * @since 2021/6/3
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Component
@Import({WebSocketConfig.class})
public @interface EnableWebSocketConfig {
}
